package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserKycPanAuthResultDao;
import com.fqgj.xjd.user.entity.UserKycPanAuthResultEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: liuming
 * Date: 2018-12-19
 * Time: 19:14:47.758
 */
@Repository
public class UserKycPanAuthResultDaoImpl extends AbstractBaseMapper<UserKycPanAuthResultEntity> implements UserKycPanAuthResultDao {

    @Override
    public UserKycPanAuthResultEntity selectByUserCode(String userCode) {
        Map<String, Object> params = new HashMap<>();
        params.put("userCode", userCode);
        return getSqlSession().selectOne(getStatement("selectByUserCode"), params);
    }
}